* sysdep.c (ULLONG_MAX): Define if not already defined.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Jul 2012 03:06:00 +0000 (20:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Jul 2012 03:06:00 +0000 (20:06 -0700)
src/ChangeLog
src/sysdep.c

index b20e661367d0a35cf464de7a475942e795791649..a001c45d5097bd279741da06979ea208de132153 100644 (file)
@@ -1,5 +1,7 @@
 2012-07-07  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * sysdep.c (ULLONG_MAX): Define if not already defined (Bug#11781).
+
        * sysdep.c (list_system_processes): Port to NetBSD-current (Bug#11797).
 
        Do not require float-time's arg to fit in time_t (Bug#11825).
index cf646768af5dd41a39ae22706ebb433265909e53..475c977044b8bcfed0dd4b84fa0557e2cec76f92 100644 (file)
@@ -108,6 +108,11 @@ static int emacs_set_tty (int, struct emacs_tty *, int);
 static _Noreturn void croak (char *);
 #endif
 
+/* ULLONG_MAX is missing on Red Hat Linux 7.3; see Bug#11781.  */
+#ifndef ULLONG_MAX
+#define ULLONG_MAX TYPE_MAXIMUM (unsigned long long int)
+#endif
+
 /* Declare here, including term.h is problematic on some systems.  */
 extern void tputs (const char *, int, int (*)(int));